<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" href="/assets/lib/layui/css/layui.css">
  <link rel="stylesheet" href="../assets/lib/cropper/cropper.css">
  <link rel="stylesheet" href="../assets/css/user/user_avatar.css">
</head>
<body>
  <div class="layui-card">
    <div class="layui-card-header">更换头像</div>
    <div class="layui-card-body">
      <!-- 图像区域 -->
      <div class="row1">
        <div class="cropper-area">
          <img id='image' src="../assets/images/sample.jpg" alt="">
        </div>
        <div class="preview-area">
          <div class="pa-1">
            <div class="preview preview-100"></div>
            <p>100X100</p>
          </div>
          <div class="pa-2">
            <div class="preview preview-50"></div>
            <p>50X50</p>
          </div>
        </div>
      </div>
      <!-- 按钮 -->
      <div class="row2">
        <input type="file"  style='display:none'>
        <button class="layui-btn" id='fileBtn'>上传</button>
        <button class="layui-btn layui-btn-danger" id='btnConfirm'>确定</button>
      </div>
    </div>
  </div>
      
  <script src="../assets/lib/jquery.js"></script>
  <script src="../assets/lib/layui/layui.all.js"></script>
  <script src="../assets/lib/cropper/Cropper.js"></script>
  <script src="../assets/lib/cropper/jquery-cropper.js"></script>
  <script src="../assets/js/baseAPI.js"></script>
  <script src="../assets/js/user/user_avatar.js"></script>
</body>
</html>